package com.czw.hibernate.service;

import com.czw.hibernate.entity.User;
import caizw.hibernate.base.dao.impl.BaseImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author czw
 */
@Service
@Transactional(propagation = Propagation.REQUIRED,rollbackFor = Exception.class)
public class UserService extends BaseImpl<User,Long> {


    public void deletes(User user){

        String test = null;
        if( test.equals("")){
            int i = 0;
        }
        this.delete(user);
    }

}
